<div class="pull-right">
<?php 
Model::load('LoginModel');
if(LoginModel::getUname()) {
?>
	<ul class="nav">
		<li><a>你好，<?=LoginModel::getUname()?></a></li>
		<li><a href="/hcs/logout">登出</a>
	</ul>
<?php } else {?>
	<form class="navbar-form" action="/hcs/login/submit" method="post">
		<input type="text" class="input-medium" id="uname" name="uname" placeholder="用户名/Email/用户ID">
		<input type="password" class="input-medium" id="pwd" name="pwd" placeholder="密码">
		<button type="submit" class="btn">登录</button>
	</form>
<?php }?>
</div>